package com.zhiyou.app.config.oss;

import com.aliyuncs.exceptions.ClientException;

import java.io.InputStream;

public interface OssService {

    boolean deleteFile(String url);

    String uploadFile(String fileName, String path, InputStream uploadFile) throws ClientException;

    String uploadFile(String fileName, String path, String url);

    String uploadFile(String fileName, String path, byte[] bytes);

    String useFile(String tempFileUrl, String path);

    String uploadAndUseFile(String fileName, String path, InputStream uploadFile);

}
